package com.yeqian.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * /**
 * 文章实体
 */
@Data
@TableName("article")
public class Article {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("commentContent")
    private String articleContent;

    @TableField("image")
    private String image;
    /**
     * 是否置顶  1：置顶
     */
    @TableField("isTop")
    private String isTop;

    @TableField("title")
    private String title;

    @TableField("createUser")
    private String createUser;

    @TableField("createTime")
    private LocalDateTime createtime;

    @TableField("updateUser")
    private String updateUser;

    @TableField("updateTime")
    private LocalDateTime updatetime;

    @TableField("deleteUser")
    private String deleteUser;

    @TableField("deleteTime")
    private LocalDateTime deletetime;

    @TableField("deleteFlag")
    private String deleteflag;

    @TableField("porder")
    private Integer porder;
}
